package xujun.control.map;

import javax.swing.*;
import java.awt.*;

/**
 * @author 徐骏
 * @data 2010-7-28
 */
public class XMap extends JPanel {
    private MapToolBar toolBar;
    private MapPanel mapPanel;

    public XMap() {
        setLayout(new BorderLayout());
        mapPanel = new MapPanel();
        toolBar = new MapToolBar(mapPanel);

        add(toolBar, BorderLayout.NORTH);
        add(mapPanel, BorderLayout.CENTER);
    }

    public Map getMap() {
        return mapPanel.getMap();
    }

}
